package VIEWS;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Toolkit;
import javax.swing.border.TitledBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import com.toedter.calendar.JDateChooser;
import java.awt.Font;
import javax.swing.JButton;
import java.awt.Color;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.ImageIcon;
import javax.swing.JTable;
import javax.swing.JScrollPane;

public class frmUserSearching extends JFrame {

	private JPanel contentPane;
	private JTextField txtPhone;
	private JTextField txtDiaChi;
	private JTextField txtHoVaTen;
	private JTextField txtMaThanhVien;
	private JTextField txtEmail;
	private JTable jLoadData;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					frmUserSearching frame = new frmUserSearching();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public frmUserSearching() {
		setIconImage(Toolkit.getDefaultToolkit().getImage(frmUserSearching.class.getResource("/IMAGES/search.png")));
		setTitle("Tìm Kiếm Thông Tin Thành Viên");
		setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
		setBounds(100, 100, 841, 481);
		contentPane = new JPanel();
		contentPane.setBorder(new TitledBorder(null, "T\u00ECm ki\u1EBFm th\u00E0nh vi\u00EAn", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblMThnhVin = new JLabel("Mã Lớp");
		lblMThnhVin.setBounds(10, 31, 82, 14);
		contentPane.add(lblMThnhVin);
		
		JLabel lblTnLp = new JLabel("Tên Lớp:");
		lblTnLp.setBounds(10, 59, 82, 14);
		contentPane.add(lblTnLp);
		
		JLabel label_2 = new JLabel("Địa chỉ:");
		label_2.setBounds(10, 90, 82, 14);
		contentPane.add(label_2);
		
		JLabel label_3 = new JLabel("Phone:");
		label_3.setBounds(10, 124, 82, 14);
		contentPane.add(label_3);
		
		txtPhone = new JTextField();
		txtPhone.setColumns(10);
		txtPhone.setBounds(103, 118, 222, 20);
		contentPane.add(txtPhone);
		
		txtDiaChi = new JTextField();
		txtDiaChi.setColumns(10);
		txtDiaChi.setBounds(103, 87, 222, 20);
		contentPane.add(txtDiaChi);
		
		txtHoVaTen = new JTextField();
		txtHoVaTen.setColumns(10);
		txtHoVaTen.setBounds(103, 56, 222, 20);
		contentPane.add(txtHoVaTen);
		
		txtMaThanhVien = new JTextField();
		txtMaThanhVien.setColumns(10);
		txtMaThanhVien.setBounds(103, 28, 222, 20);
		contentPane.add(txtMaThanhVien);
		
		JLabel lblGiiTnh = new JLabel("Giới tính:");
		lblGiiTnh.setBounds(345, 123, 93, 14);
		contentPane.add(lblGiiTnh);
		
		JLabel label_5 = new JLabel("Email:");
		label_5.setBounds(345, 92, 93, 14);
		contentPane.add(label_5);
		
		JLabel lblNgyBtu = new JLabel("Ngày Bắt Đầu");
		lblNgyBtu.setBounds(345, 30, 62, 17);
		contentPane.add(lblNgyBtu);
		
		JDateChooser dtpNgaySinhTuNgay = new JDateChooser();
		dtpNgaySinhTuNgay.setBounds(446, 25, 159, 20);
		contentPane.add(dtpNgaySinhTuNgay);
		
		JDateChooser dtpThamGiaTuNgay = new JDateChooser();
		dtpThamGiaTuNgay.setBounds(446, 60, 159, 20);
		contentPane.add(dtpThamGiaTuNgay);
		
		txtEmail = new JTextField();
		txtEmail.setColumns(10);
		txtEmail.setBounds(446, 89, 366, 20);
		contentPane.add(txtEmail);
		
		JLabel label_8 = new JLabel("đến");
		label_8.setFont(new Font("Tahoma", Font.BOLD, 11));
		label_8.setBounds(617, 66, 26, 14);
		contentPane.add(label_8);
		
		JLabel label_9 = new JLabel("đến");
		label_9.setFont(new Font("Tahoma", Font.BOLD, 11));
		label_9.setBounds(617, 31, 26, 14);
		contentPane.add(label_9);
		
		JDateChooser dtpdtpNgaySinhDenNgay = new JDateChooser();
		dtpdtpNgaySinhDenNgay.setBounds(653, 25, 159, 20);
		contentPane.add(dtpdtpNgaySinhDenNgay);
		
		JDateChooser dtpThamGiaDenNgay = new JDateChooser();
		dtpThamGiaDenNgay.setBounds(653, 60, 159, 20);
		contentPane.add(dtpThamGiaDenNgay);
		
		JButton btnTimKiem = new JButton("Tìm kiếm");
		btnTimKiem.setIcon(new ImageIcon(frmUserSearching.class.getResource("/IMAGES/search.png")));
		btnTimKiem.setForeground(Color.BLUE);
		btnTimKiem.setFont(new Font("Dialog", Font.BOLD, 11));
		btnTimKiem.setBounds(595, 154, 108, 23);
		contentPane.add(btnTimKiem);
		
		JButton btnHuyBo = new JButton("Hủy bỏ");
		btnHuyBo.setIcon(new ImageIcon(frmUserSearching.class.getResource("/IMAGES/deleteIcon.png")));
		btnHuyBo.setForeground(Color.DARK_GRAY);
		btnHuyBo.setFont(new Font("Dialog", Font.BOLD, 11));
		btnHuyBo.setBounds(704, 154, 108, 23);
		contentPane.add(btnHuyBo);
		
		JComboBox cboGioiTinh = new JComboBox();
		cboGioiTinh.setModel(new DefaultComboBoxModel(new String[] {"-----  Giới Tinh Nam -----", "-----  Giới Tinh Nữ -----"}));
		cboGioiTinh.setBounds(446, 118, 366, 23);
		contentPane.add(cboGioiTinh);
		
		JButton btnBaoCao = new JButton("Báo cáo");
		btnBaoCao.setIcon(new ImageIcon(frmUserSearching.class.getResource("/IMAGES/action_settings.png")));
		btnBaoCao.setForeground(Color.RED);
		btnBaoCao.setFont(new Font("Dialog", Font.BOLD, 11));
		btnBaoCao.setBounds(497, 155, 95, 23);
		contentPane.add(btnBaoCao);
		
		JPanel panel = new JPanel();
		panel.setBorder(new TitledBorder(null, "K\u1EBFt qu\u1EA3 t\u00ECm ki\u1EBFm", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel.setBounds(10, 195, 802, 237);
		contentPane.add(panel);
		panel.setLayout(null);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 15, 783, 211);
		panel.add(scrollPane);
		
		jLoadData = new JTable();
		scrollPane.setViewportView(jLoadData);
	}
}
